#ifndef _MODULE_H_
#define _MODULE_H_


#define MODULE_SIGN_LENGTH 8
#define MODULE_SIGN "SalilMod"

enum {F_INIT,F_SHUTDOWN,F_RESET,F_READBLOCK,F_WRITEBLOCK,F_READ,F_WRITE};


struct module_struct	{
	char sign[8];
	unsigned long (*control)(int fn,unsigned long p0,unsigned long p1,unsigned long p2,unsigned long p3);	//Function should always return data.
	unsigned long status;
	unsigned long error;	//Only place to get the error of the module
};


#endif